﻿<s:SurfaceUserControl
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:s="http://schemas.microsoft.com/surface/2008" xmlns:d="http://schemas.microsoft.com/expression/blend/2008" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" x:Class="SurfaceCardsGameKit.ImageCard"
    xmlns:local="clr-namespace:SurfaceCardsGameKit"
    mc:Ignorable="d"
    x:Name="carte">

    <s:SurfaceUserControl.Resources>
        <BooleanToVisibilityConverter x:Key="convVisibility" />
        
        <Style x:Key="LabelStyle1" TargetType="{x:Type Label}">
            <Setter Property="Foreground" Value="{DynamicResource {x:Static SystemColors.ControlTextBrushKey}}"/>
            <Setter Property="Background" Value="Transparent"/>
            <Setter Property="Padding" Value="2"/>

            <Setter Property="FontWeight" Value="Bold"/>
            <Setter Property="HorizontalAlignment" Value="Center"/>
            <Setter Property="VerticalAlignment" Value="Center"/>
            <Setter Property="FontFamily" Value="Miraiam Fixed"/>
            <Setter Property="FontSize" Value="8"/>

            <Setter Property="Template">
                <Setter.Value>
                    <ControlTemplate TargetType="{x:Type Label}">
                        <Border Margin="0,0,-0.833,1.667" SnapsToDevicePixels="true" Background="{TemplateBinding Background}" BorderBrush="{TemplateBinding BorderBrush}" BorderThickness="{TemplateBinding BorderThickness}" Padding="{TemplateBinding Padding}">
                            <ContentPresenter HorizontalAlignment="Center" Margin="-5" VerticalAlignment="Center" Width="Auto" Height="Auto" SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}" RecognizesAccessKey="True"/>
                        </Border>
                    </ControlTemplate>
                </Setter.Value>
            </Setter>
        </Style>
    </s:SurfaceUserControl.Resources>

    <s:SurfaceUserControl.Template>
        <ControlTemplate TargetType="{x:Type local:ImageCard}" x:Name="ControlTemp">
                <Grid Background="{DynamicResource Cadre}">
                    <Grid.RowDefinitions>
                        <RowDefinition Height="0.045*"/>
                        <RowDefinition Height="0.08*"/>
                        <RowDefinition Height="0.01*"/>
                        <RowDefinition Height="0.04*"/>
                        <RowDefinition Height="0.05*"/>
                        <RowDefinition Height="0.05*"/>
                        <RowDefinition Height="0.05*"/>
                        <RowDefinition Height="0.05*"/>
                        <RowDefinition Height="0.05*"/>
                        <RowDefinition Height="0.05*"/>
                        <RowDefinition Height="0.05*"/>
                        <RowDefinition Height="0.05*"/>
                        <RowDefinition Height="0.05*"/>
                        <RowDefinition Height="0.05*"/>
                        <RowDefinition Height="0.05*"/>
                        <RowDefinition Height="0.05*"/>
                        <RowDefinition Height="0.05*"/>
                        <RowDefinition Height="0.04*"/>
                        <RowDefinition Height="0.01*"/>
                        <RowDefinition Height="0.08*"/>
                        <RowDefinition Height="0.045*"/>
                    </Grid.RowDefinitions>
                    <Grid.ColumnDefinitions>
                        <ColumnDefinition Width="0.05*"/>
                        <ColumnDefinition Width="0.01*"/>
                        <ColumnDefinition Width="0.08*"/>
                        <ColumnDefinition Width="0.01*"/>
                        <ColumnDefinition Width="0.205*"/>
                        <ColumnDefinition Width="0.075*"/>
                        <ColumnDefinition Width="0.140*"/>
                        <ColumnDefinition Width="0.075*"/>
                        <ColumnDefinition Width="0.205*"/>
                        <ColumnDefinition Width="0.01*"/>
                        <ColumnDefinition Width="0.08*"/>
                        <ColumnDefinition Width="0.01*"/>
                        <ColumnDefinition Width="0.05*"/>
                    </Grid.ColumnDefinitions>
                    
                    <Label x:Name="ChiffreHautGauche" Style="{DynamicResource LabelStyle1}" Grid.Row="1" Grid.Column="1" Grid.RowSpan="2" Grid.ColumnSpan="3" Content="{TemplateBinding Number}"/>
                    <Label x:Name="ChiffreBasGauche" Style="{DynamicResource LabelStyle1}" Grid.Row="18" Grid.Column="1" Grid.RowSpan="2" Grid.ColumnSpan="3" Content="{TemplateBinding Number}" RenderTransformOrigin="0.5,0.5">
                        <Label.RenderTransform>
                            <TransformGroup>
                                <RotateTransform Angle="180"/>
                            </TransformGroup>
                        </Label.RenderTransform>
                    </Label>
                    <Label x:Name="ChiffreBasDroite" Style="{DynamicResource LabelStyle1}" Grid.Row="18" Grid.Column="9" Grid.RowSpan="2" Grid.ColumnSpan="3" Content="{TemplateBinding Number}" RenderTransformOrigin="0.5,0.5">
                        <Label.RenderTransform>
                            <TransformGroup>
                                <RotateTransform Angle="180"/>
                            </TransformGroup>
                        </Label.RenderTransform>
                    </Label>
                    <Label x:Name="ChiffreHautDroite" Style="{DynamicResource LabelStyle1}" Grid.Row="1" Grid.Column="9" Grid.RowSpan="2" Grid.ColumnSpan="3" Content="{TemplateBinding Number}"/>

                    <Rectangle x:Name="FormeHautGauche" Fill="{DynamicResource SmallCoeur}" StrokeThickness="0" Margin="0" Grid.Column="1" Grid.ColumnSpan="3" Grid.Row="2" Grid.RowSpan="2"/>
                    <Rectangle x:Name="FormeBasGauche" Fill="{DynamicResource SmallCoeur}" Stroke="Black" Margin="0" Grid.Column="1" Grid.ColumnSpan="3" Grid.Row="17" Grid.RowSpan="2" StrokeThickness="0" RenderTransformOrigin="0.5,0.5">
                        <Rectangle.RenderTransform>
                            <TransformGroup>
                                <RotateTransform Angle="180"/>
                            </TransformGroup>
                        </Rectangle.RenderTransform>
                    </Rectangle>
                    <Rectangle x:Name="FormeHautDroite" Fill="{DynamicResource SmallCoeur}" StrokeThickness="0" Margin="0" Grid.Column="9" Grid.ColumnSpan="3" Grid.Row="2" Grid.RowSpan="2"/>
                    <Rectangle x:Name="FormeBasDroite" Fill="{DynamicResource SmallCoeur}" Stroke="Black" Margin="0" Grid.Column="9" Grid.ColumnSpan="3" Grid.Row="17" Grid.RowSpan="2" StrokeThickness="0" RenderTransformOrigin="0.5,0.5">
                        <Rectangle.RenderTransform>
                            <TransformGroup>
                                <RotateTransform Angle="180"/>
                            </TransformGroup>
                        </Rectangle.RenderTransform>
                    </Rectangle>
                    <Rectangle x:Name="Icone1" Visibility="{TemplateBinding Temp3, Converter={StaticResource convVisibility}}" Margin="0" Grid.Column="3" Grid.Row="2" Grid.ColumnSpan="3" Grid.RowSpan="4" StrokeThickness="0"/>
                    <Rectangle x:Name="Icone2" Visibility="{TemplateBinding Temp2, Converter={StaticResource convVisibility}}" Margin="0" Grid.Column="5" Grid.Row="2" Grid.ColumnSpan="3" Grid.RowSpan="4" StrokeThickness="0"/>
                    <Rectangle x:Name="Icone3" Visibility="{TemplateBinding Temp3, Converter={StaticResource convVisibility}}" Margin="0" Grid.Column="7" Grid.Row="2" Grid.ColumnSpan="3" Grid.RowSpan="4" StrokeThickness="0"/>
                    <Rectangle x:Name="Icone4" Visibility="{TemplateBinding Temp6, Converter={StaticResource convVisibility}}" Margin="0" Grid.Column="5" Grid.Row="5" Grid.ColumnSpan="3" Grid.RowSpan="3" StrokeThickness="0"/>
                    <Rectangle x:Name="Icone5" Visibility="{TemplateBinding Temp7, Converter={StaticResource convVisibility}}" Margin="0" Grid.Column="3" Grid.Row="7" Grid.ColumnSpan="3" Grid.RowSpan="3" StrokeThickness="0"/>
                    <Rectangle x:Name="Icone6" Visibility="{TemplateBinding Temp7, Converter={StaticResource convVisibility}}" Margin="0" Grid.Column="7" Grid.Row="7" Grid.ColumnSpan="3" Grid.RowSpan="3" StrokeThickness="0"/>
                    <Rectangle x:Name="Icone7" Visibility="{TemplateBinding Temp4, Converter={StaticResource convVisibility}}" Margin="0" Grid.Column="3" Grid.Row="9" Grid.ColumnSpan="3" Grid.RowSpan="3" StrokeThickness="0"/>
                    <Rectangle x:Name="Icone8" Visibility="{TemplateBinding Temp1, Converter={StaticResource convVisibility}}" Margin="0" Grid.Column="5" Grid.Row="9" Grid.ColumnSpan="3" Grid.RowSpan="3" StrokeThickness="0"/>
                    <Rectangle x:Name="Icone9" Visibility="{TemplateBinding Temp4, Converter={StaticResource convVisibility}}" Margin="0" Grid.Column="7" Grid.Row="9" Grid.ColumnSpan="3" Grid.RowSpan="3" StrokeThickness="0" RenderTransformOrigin="0.5,0.5">
                        <Rectangle.RenderTransform>
                            <TransformGroup>
                                <RotateTransform Angle="180"/>
                            </TransformGroup>
                        </Rectangle.RenderTransform>
                    </Rectangle>
                    <Rectangle x:Name="Icone10" Visibility="{TemplateBinding Temp7, Converter={StaticResource convVisibility}}" Margin="0" Grid.Column="3" Grid.Row="11" Grid.ColumnSpan="3" Grid.RowSpan="3" StrokeThickness="0" RenderTransformOrigin="0.5,0.5">
                        <Rectangle.RenderTransform>
                            <TransformGroup>
                                <RotateTransform Angle="180"/>
                            </TransformGroup>
                        </Rectangle.RenderTransform>
                    </Rectangle>
                    <Rectangle x:Name="Icone11" Visibility="{TemplateBinding Temp7, Converter={StaticResource convVisibility}}" Margin="0" Grid.Column="7" Grid.Row="11" Grid.ColumnSpan="3" Grid.RowSpan="3" StrokeThickness="0" RenderTransformOrigin="0.5,0.5">
                        <Rectangle.RenderTransform>
                            <TransformGroup>
                                <RotateTransform Angle="180"/>
                            </TransformGroup>
                        </Rectangle.RenderTransform>
                    </Rectangle>
                    <Rectangle x:Name="Icone12" Visibility="{TemplateBinding Temp5, Converter={StaticResource convVisibility}}" Margin="0" Grid.Column="5" Grid.Row="13" Grid.ColumnSpan="3" Grid.RowSpan="3" StrokeThickness="0" RenderTransformOrigin="0.5,0.5">
                        <Rectangle.RenderTransform>
                            <TransformGroup>
                                <RotateTransform Angle="180"/>
                            </TransformGroup>
                        </Rectangle.RenderTransform>
                    </Rectangle>
                    <Rectangle x:Name="Icone13" Visibility="{TemplateBinding Temp3, Converter={StaticResource convVisibility}}" Margin="0" Grid.Column="3" Grid.ColumnSpan="3" Grid.RowSpan="4" StrokeThickness="0" RenderTransformOrigin="0.5,0.5" Grid.Row="15">
                        <Rectangle.RenderTransform>
                            <TransformGroup>
                                <RotateTransform Angle="180"/>
                            </TransformGroup>
                        </Rectangle.RenderTransform>
                    </Rectangle>
                    <Rectangle x:Name="Icone14" Visibility="{TemplateBinding Temp2, Converter={StaticResource convVisibility}}" Margin="0" Grid.Column="5" Grid.ColumnSpan="3" Grid.RowSpan="4" Grid.Row="15" StrokeThickness="0" RenderTransformOrigin="0.5,0.5">
                        <Rectangle.RenderTransform>
                            <TransformGroup>
                                <RotateTransform Angle="180"/>
                            </TransformGroup>
                        </Rectangle.RenderTransform>
                    </Rectangle>
                    <Rectangle x:Name="Icone15" Visibility="{TemplateBinding Temp3, Converter={StaticResource convVisibility}}" Margin="0" Grid.Column="7" Grid.ColumnSpan="3" Grid.RowSpan="4" Grid.Row="15" StrokeThickness="0" RenderTransformOrigin="0.5,0.5">
                        <Rectangle.RenderTransform>
                            <TransformGroup>
                                <RotateTransform Angle="180"/>
                            </TransformGroup>
                        </Rectangle.RenderTransform>
                    </Rectangle>

                    <Rectangle x:Name="IconeV" Fill="{DynamicResource Vallet}" Visibility="{TemplateBinding TempV, Converter={StaticResource convVisibility}}" Grid.Column="1" Grid.ColumnSpan="11" Grid.RowSpan="19" Grid.Row="1" StrokeThickness="0"></Rectangle>
                    <Rectangle x:Name="IconeD" Fill="{DynamicResource Dame}" Visibility="{TemplateBinding TempD, Converter={StaticResource convVisibility}}" Grid.Column="1" Grid.ColumnSpan="11" Grid.RowSpan="19" Grid.Row="1" StrokeThickness="0"></Rectangle>
                    <Rectangle x:Name="IconeR" Fill="{DynamicResource Roi}" Visibility="{TemplateBinding TempR, Converter={StaticResource convVisibility}}" Grid.Column="1" Grid.ColumnSpan="11" Grid.RowSpan="19" Grid.Row="1" StrokeThickness="0"></Rectangle>
            </Grid>
            <ControlTemplate.Triggers>
                <Trigger Property="Color" Value="Club">
                    <Setter TargetName="FormeBasGauche" Property="Fill" Value="{DynamicResource SmallTrefle}"/>
                    <Setter TargetName="FormeBasDroite" Property="Fill" Value="{DynamicResource SmallTrefle}"/>
                    <Setter TargetName="FormeHautGauche" Property="Fill" Value="{DynamicResource SmallTrefle}"/>
                    <Setter TargetName="FormeHautDroite" Property="Fill" Value="{DynamicResource SmallTrefle}"/>

                    <Setter TargetName="Icone1" Property="Fill" Value="{DynamicResource SmallTrefle}"/>
                    <Setter TargetName="Icone2" Property="Fill" Value="{DynamicResource SmallTrefle}"/>
                    <Setter TargetName="Icone3" Property="Fill" Value="{DynamicResource SmallTrefle}"/>
                    <Setter TargetName="Icone4" Property="Fill" Value="{DynamicResource SmallTrefle}"/>
                    <Setter TargetName="Icone5" Property="Fill" Value="{DynamicResource SmallTrefle}"/>
                    <Setter TargetName="Icone6" Property="Fill" Value="{DynamicResource SmallTrefle}"/>
                    <Setter TargetName="Icone7" Property="Fill" Value="{DynamicResource SmallTrefle}"/>
                    <Setter TargetName="Icone8" Property="Fill" Value="{DynamicResource SmallTrefle}"/>
                    <Setter TargetName="Icone9" Property="Fill" Value="{DynamicResource SmallTrefle}"/>
                    <Setter TargetName="Icone10" Property="Fill" Value="{DynamicResource SmallTrefle}"/>
                    <Setter TargetName="Icone11" Property="Fill" Value="{DynamicResource SmallTrefle}"/>
                    <Setter TargetName="Icone12" Property="Fill" Value="{DynamicResource SmallTrefle}"/>
                    <Setter TargetName="Icone13" Property="Fill" Value="{DynamicResource SmallTrefle}"/>
                    <Setter TargetName="Icone14" Property="Fill" Value="{DynamicResource SmallTrefle}"/>
                    <Setter TargetName="Icone15" Property="Fill" Value="{DynamicResource SmallTrefle}"/>

                    <Setter TargetName="IconeV" Property="Fill" Value="{DynamicResource ValletTrefle}"/>
                    <Setter TargetName="IconeD" Property="Fill" Value="{DynamicResource DameTrefle}"/>
                    <Setter TargetName="IconeR" Property="Fill" Value="{DynamicResource RoiTrefle}"/>

                    <Setter TargetName="ChiffreBasGauche" Property="Foreground" Value="Black"/>
                    <Setter TargetName="ChiffreBasDroite" Property="Foreground" Value="Black"/>
                    <Setter TargetName="ChiffreHautGauche" Property="Foreground" Value="Black"/>
                    <Setter TargetName="ChiffreHautDroite" Property="Foreground" Value="Black"/>
                </Trigger>
                <Trigger Property="Color" Value="Diamond">
                    <Setter TargetName="FormeBasGauche" Property="Fill" Value="{DynamicResource SmallCarro}"/>
                    <Setter TargetName="FormeBasDroite" Property="Fill" Value="{DynamicResource SmallCarro}"/>
                    <Setter TargetName="FormeHautGauche" Property="Fill" Value="{DynamicResource SmallCarro}"/>
                    <Setter TargetName="FormeHautDroite" Property="Fill" Value="{DynamicResource SmallCarro}"/>

                    <Setter TargetName="Icone1" Property="Fill" Value="{DynamicResource SmallCarro}"/>
                    <Setter TargetName="Icone2" Property="Fill" Value="{DynamicResource SmallCarro}"/>
                    <Setter TargetName="Icone3" Property="Fill" Value="{DynamicResource SmallCarro}"/>
                    <Setter TargetName="Icone4" Property="Fill" Value="{DynamicResource SmallCarro}"/>
                    <Setter TargetName="Icone5" Property="Fill" Value="{DynamicResource SmallCarro}"/>
                    <Setter TargetName="Icone6" Property="Fill" Value="{DynamicResource SmallCarro}"/>
                    <Setter TargetName="Icone7" Property="Fill" Value="{DynamicResource SmallCarro}"/>
                    <Setter TargetName="Icone8" Property="Fill" Value="{DynamicResource SmallCarro}"/>
                    <Setter TargetName="Icone9" Property="Fill" Value="{DynamicResource SmallCarro}"/>
                    <Setter TargetName="Icone10" Property="Fill" Value="{DynamicResource SmallCarro}"/>
                    <Setter TargetName="Icone11" Property="Fill" Value="{DynamicResource SmallCarro}"/>
                    <Setter TargetName="Icone12" Property="Fill" Value="{DynamicResource SmallCarro}"/>
                    <Setter TargetName="Icone13" Property="Fill" Value="{DynamicResource SmallCarro}"/>
                    <Setter TargetName="Icone14" Property="Fill" Value="{DynamicResource SmallCarro}"/>
                    <Setter TargetName="Icone15" Property="Fill" Value="{DynamicResource SmallCarro}"/>

                    <Setter TargetName="IconeV" Property="Fill" Value="{DynamicResource ValletCarro}"/>
                    <Setter TargetName="IconeD" Property="Fill" Value="{DynamicResource DameCarro}"/>
                    <Setter TargetName="IconeR" Property="Fill" Value="{DynamicResource RoiCarro}"/>

                    <Setter TargetName="ChiffreBasGauche" Property="Foreground" Value="Red"/>
                    <Setter TargetName="ChiffreBasDroite" Property="Foreground" Value="Red"/>
                    <Setter TargetName="ChiffreHautGauche" Property="Foreground" Value="Red"/>
                    <Setter TargetName="ChiffreHautDroite" Property="Foreground" Value="Red"/>
                </Trigger>
                <Trigger Property="Color" Value="Spade">
                    <Setter TargetName="FormeBasGauche" Property="Fill" Value="{DynamicResource SmallPique}"/>
                    <Setter TargetName="FormeBasDroite" Property="Fill" Value="{DynamicResource SmallPique}"/>
                    <Setter TargetName="FormeHautGauche" Property="Fill" Value="{DynamicResource SmallPique}"/>
                    <Setter TargetName="FormeHautDroite" Property="Fill" Value="{DynamicResource SmallPique}"/>

                    <Setter TargetName="Icone1" Property="Fill" Value="{DynamicResource SmallPique}"/>
                    <Setter TargetName="Icone2" Property="Fill" Value="{DynamicResource SmallPique}"/>
                    <Setter TargetName="Icone3" Property="Fill" Value="{DynamicResource SmallPique}"/>
                    <Setter TargetName="Icone4" Property="Fill" Value="{DynamicResource SmallPique}"/>
                    <Setter TargetName="Icone5" Property="Fill" Value="{DynamicResource SmallPique}"/>
                    <Setter TargetName="Icone6" Property="Fill" Value="{DynamicResource SmallPique}"/>
                    <Setter TargetName="Icone7" Property="Fill" Value="{DynamicResource SmallPique}"/>
                    <Setter TargetName="Icone8" Property="Fill" Value="{DynamicResource SmallPique}"/>
                    <Setter TargetName="Icone9" Property="Fill" Value="{DynamicResource SmallPique}"/>
                    <Setter TargetName="Icone10" Property="Fill" Value="{DynamicResource SmallPique}"/>
                    <Setter TargetName="Icone11" Property="Fill" Value="{DynamicResource SmallPique}"/>
                    <Setter TargetName="Icone12" Property="Fill" Value="{DynamicResource SmallPique}"/>
                    <Setter TargetName="Icone13" Property="Fill" Value="{DynamicResource SmallPique}"/>
                    <Setter TargetName="Icone14" Property="Fill" Value="{DynamicResource SmallPique}"/>
                    <Setter TargetName="Icone15" Property="Fill" Value="{DynamicResource SmallPique}"/>

                    <Setter TargetName="IconeV" Property="Fill" Value="{DynamicResource ValletPique}"/>
                    <Setter TargetName="IconeD" Property="Fill" Value="{DynamicResource DamePique}"/>
                    <Setter TargetName="IconeR" Property="Fill" Value="{DynamicResource RoiPique}"/>

                    <Setter TargetName="ChiffreBasGauche" Property="Foreground" Value="Black"/>
                    <Setter TargetName="ChiffreBasDroite" Property="Foreground" Value="Black"/>
                    <Setter TargetName="ChiffreHautGauche" Property="Foreground" Value="Black"/>
                    <Setter TargetName="ChiffreHautDroite" Property="Foreground" Value="Black"/>
                </Trigger>
                <Trigger Property="Color" Value="Heart">
                    <Setter TargetName="FormeBasGauche" Property="Fill" Value="{DynamicResource SmallCoeur}"/>
                    <Setter TargetName="FormeBasDroite" Property="Fill" Value="{DynamicResource SmallCoeur}"/>
                    <Setter TargetName="FormeHautGauche" Property="Fill" Value="{DynamicResource SmallCoeur}"/>
                    <Setter TargetName="FormeHautDroite" Property="Fill" Value="{DynamicResource SmallCoeur}"/>

                    <Setter TargetName="Icone1" Property="Fill" Value="{DynamicResource SmallCoeur}"/>
                    <Setter TargetName="Icone2" Property="Fill" Value="{DynamicResource SmallCoeur}"/>
                    <Setter TargetName="Icone3" Property="Fill" Value="{DynamicResource SmallCoeur}"/>
                    <Setter TargetName="Icone4" Property="Fill" Value="{DynamicResource SmallCoeur}"/>
                    <Setter TargetName="Icone5" Property="Fill" Value="{DynamicResource SmallCoeur}"/>
                    <Setter TargetName="Icone6" Property="Fill" Value="{DynamicResource SmallCoeur}"/>
                    <Setter TargetName="Icone7" Property="Fill" Value="{DynamicResource SmallCoeur}"/>
                    <Setter TargetName="Icone8" Property="Fill" Value="{DynamicResource SmallCoeur}"/>
                    <Setter TargetName="Icone9" Property="Fill" Value="{DynamicResource SmallCoeur}"/>
                    <Setter TargetName="Icone10" Property="Fill" Value="{DynamicResource SmallCoeur}"/>
                    <Setter TargetName="Icone11" Property="Fill" Value="{DynamicResource SmallCoeur}"/>
                    <Setter TargetName="Icone12" Property="Fill" Value="{DynamicResource SmallCoeur}"/>
                    <Setter TargetName="Icone13" Property="Fill" Value="{DynamicResource SmallCoeur}"/>
                    <Setter TargetName="Icone14" Property="Fill" Value="{DynamicResource SmallCoeur}"/>
                    <Setter TargetName="Icone15" Property="Fill" Value="{DynamicResource SmallCoeur}"/>

                    <Setter TargetName="IconeV" Property="Fill" Value="{DynamicResource ValletCoeur}"/>
                    <Setter TargetName="IconeD" Property="Fill" Value="{DynamicResource DameCoeur}"/>
                    <Setter TargetName="IconeR" Property="Fill" Value="{DynamicResource RoiCoeur}"/>

                    <Setter TargetName="ChiffreBasGauche" Property="Foreground" Value="Red"/>
                    <Setter TargetName="ChiffreBasDroite" Property="Foreground" Value="Red"/>
                    <Setter TargetName="ChiffreHautGauche" Property="Foreground" Value="Red"/>
                    <Setter TargetName="ChiffreHautDroite" Property="Foreground" Value="Red"/>
                </Trigger>
            </ControlTemplate.Triggers>
        </ControlTemplate>
    </s:SurfaceUserControl.Template>
</s:SurfaceUserControl>
